home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
comms
/
other
/
iris
/
movemsg.irx
< prev
next >
Wrap
Text File
|
1999-05-14
|
1KB
|
82 lines
/* REXX script to transfer message(s) to another folder
$VER: MoveMsg.irx 1.2 (30.6.98) supplied with Iris V1.6
*/
/* address IRIS removed - now also usable from IRIS.n */
options results
options failat 11
'LOCKGUI'
signal on break_c
'GETNUMSELECTED'
n = result
if rc > 0 then do
'ASKCHOICE "Transfer message(s)" "This script needs at*Nleast V1.3 of Iris." "**_OK"'
signal break_c
end
else nop
if n = 0 then do
'ASKCHOICE "Transfer message(s)" "Select at least one*Nmessage first!" "**_OK"'
signal break_c
end
else nop
'ASKFOLDER'
if rc ~= 0 then do
signal break_c
end
else nop
dest = result
'GETFOLDER'
if result = dest then do
'ASKCHOICE "Transfer message(s)" "Impossible action:*NSame folder selected!" "**_OK"'
signal break_c
end
else nop
i = 0
err = ''
'GETNUMSELECTED'
n = result
if rc > 0 then do
'ASKCHOICE "Transfer message(s)" "This script needs at*Nleast V1.3 of Iris." "**_OK"'
signal break_c
end
else nop
if n = 0 then do
'ASKCHOICE "Transfer message(s)" "Did you click on the listview???" "**_OK"'
end
else nop
do i=0 to n-1
'MESSAGEFILE' i
msg = result
if rc > 0 then do
err = 'Did you click on the listview???'
leave i
end
else nop
'READMESSAGE "'||msg||'" 0 TO "'||dest||'"'
if rc > 0 then do
err = 'The READMESSAGE command failed.'
leave i
end
else nop
end
if err ~= '' then do
'ASKCHOICE "Transfer message(s)" "'||err||'" "**_OK"'
end
else do
'DELETE'
end
signal break_c
exit
break_c:
'UNLOCKGUI'
exit